//
//  Util.m
//  cc
//
//  Created by ZLQ on 2016/10/25.
//  Copyright © 2016年 hbyj. All rights reserved.
//

#import "Util.h"

@implementation Util
//当前登录用户的信息 为单例模式
+(UserEntity * )getCurrentUserInfo
{
    static dispatch_once_t pred;
    static UserEntity *currentUser;
    dispatch_once(&pred, ^{
        currentUser = [[UserEntity alloc] init];
        currentUser.isLogin = [self jianceshifoudenglu];
    });
    return currentUser;
}

+ (BOOL)jianceshifoudenglu{
    
    NSDictionary *dic = [NSDictionary dictionaryWithContentsOfFile:AccountFiledPath];
    if (dic == nil) {
    
        return NO;
    }
    return YES;
}

@end
